<?php



$cur2 = curl_init('http://192.168.1.49:82/WebServices/AM/MaccContractWS.ashx');
$insertstr = '{"app_id":"12345678","frequency":"0","principal":"2026","LoanDuration":"52","InterestRate":"48","FirstRepaymentDate":"20/03/2014","LoanDate":"19/03/2014","OtherCharges":"0"}';

$cur2_post_data = array( 'InsertString' => $insertstr, );

curl_setopt($cur2, CURLOPT_RETURNTRANSFER, true);
curl_setopt($cur2, CURLOPT_POST, true);
curl_setopt($cur2, CURLOPT_POSTFIELDS, $cur2_post_data);

$errorMessage = curl_errno($cur2);
$cur2_response = curl_exec($cur2);

print_r($cur2_response );

curl_close($cur2);

?>